import React from 'react'
import './style.less'

export default class CleanBtn extends React.Component {
  clickHandler(event){
    const reservate = this.props.reservate
    reservate(event.target.value);
  }
  render() {
    return(
      <div className='clean-btn' onClick={this.clickHandler.bind(this)}>
        <button type='button' className='active' value='单次预约'>单次预约</button>
        <button type='button' value='周期预约'>周期预约</button>
      </div>
    )
  }
}
